package com.fbs.wowo.attest.service.imp;

import com.fbs.wowo.attest.entity.Attest;
import com.fbs.wowo.attest.mapper.AttestMapper;
import com.fbs.wowo.attest.service.AttestService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("AttestService")
@Transactional
public class AttestServiceImp implements AttestService {

    @Resource
    private AttestMapper attestMapper;

    @Override
    public int insertSelective(Attest attest) {
        return attestMapper.insertSelective(attest);
    }

    @Override
    public Attest selectByPrimaryKey(String id) {
        return attestMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Attest record) {
        return attestMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public Attest findAttestInfoByEssayId(String essayId) {
        return attestMapper.findAttestInfoByEssayId(essayId);
    }

}
